﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DevDivas.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
        }
        /*
        protected void LoginUser_Authenticate(object sender, AuthenticateEventArgs e)
        {
            try
            {
                string uname = LoginUser.UserName.Trim();
                string pword = LoginUser.Password.Trim();
                bool flag = AuthenticateUser(uname, pword);
                if (flag == true)
                {
                    e.Authenticated = true;
                    LoginUser.DestinationPageUrl = "../Default.aspx";
                }
                else
                {
                    e.Authenticated = false;
                }
            }
            catch(Exception)
            {
                e.Authenticated = false;
            }
        }

        private bool AuthenticateUser(string uname, string pword)
        {
            bool bflag = false;
            string connString = "Server=localhost;Database=";

            return bflag;
        }*/
    }
}
